package org.example.myleet.p775;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.isIdealPermutation(new int[]{0,2,1,3}));
        Assert.isTrue(solution.isIdealPermutation(new int[]{1,0,2}));
        Assert.isTrue(!solution.isIdealPermutation(new int[]{1,2,0}));
        Assert.isTrue(!solution.isIdealPermutation(new int[]{4,3,2,1,0}));
    }
}
